#include "testfilter.h"

//Qt
#include <QRunnable>
#include <QObject>
#include <QThreadPool>
#include <QFuture>
#include <QtConcurrentRun>
#include <QApplication>
#include <QThread>

testfilter::testfilter()
: BaseFilter(FilterDescription("Test Filter", "Test Filter", "TEST!", ":/toolbar/PclUtils/icons/pcl.png", false) )
, m_app()
{
	m_thread_pool = QThreadPool::globalInstance();
}

int testfilter::openDialog()
{
	return 1;
}

int testfilter::compute()
{
	QFuture<void> future = QtConcurrent::run(&(*this->m_app), &Test::run);

	return 1;
}
